Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brand new file testing #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Brand new file testing #5

wants to merge 2 commits into from

Conversation

vnkiryushkin
Copy link
Owner

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=ru

Description of changes:

aws configure set endpoint_url https://{{ s3-storage-host }}/
```

{% cut "Пример получившихся конфигурационных файлов" %}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% cut "Пример получившихся конфигурационных файлов" %}
```yfm
{% cut "Пример получившихся конфигурационных файлов" %}

```bash
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" --output "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sudo ./aws/install

sudo ./aws/install


После закрытия диалога значение ключа будет недоступно.

{% endnote %}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% endnote %}
```yfm
{% endnote %}


Для работы с {{ objstorage-name }} всегда указывайте регион — `{{ region-id }}`. Другие значения региона могут привести к ошибке авторизации.

{% if region == "kz" %}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% if region == "kz" %}
```yfm
{% if region == "kz" %}


- Windows {#windows}

1. Скачайте [установочный файл](https://awscli.amazonaws.com/AWSCLIV2.msi) AWS CLI.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Скачайте [установочный файл](https://awscli.amazonaws.com/AWSCLIV2.msi) AWS CLI.
1. Скачайте установочный файл AWS CLI.
*https://awscli.amazonaws.com/AWSCLIV2.msi*


{% include [store-aws-key-in-lockbox](../../_includes/storage/store-aws-key-in-lockbox.md) %}

{% endif %}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% endif %}
{% endif %}

1. [Загрузите обьект в бакет](#upload-files).
1. [Получите ссылку на скачивание файла](#get-link).

## Подготовьте облако к работе {#before-you-begin}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Подготовьте облако к работе {#before-you-begin}
## Подготовьте облако к работе { #before-you-begin }


{% endnote %}

## Создайте бакет {#the-first-bucket}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Создайте бакет {#the-first-bucket}
## Создайте бакет { #the-first-bucket }


{% if region == "kz" %}

```text
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```text
```yfm
```text

Текст — это правильно оформленный фрагмент. В нём нет грамматических, орфографических и пунктуационных ошибок.


{% endlist %}

## Настройте сервисный аккаунт {#create-sa}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Настройте сервисный аккаунт {#create-sa}
## Настройте сервисный аккаунт { #create-sa }

```text
[default]
region = kz1
endpoint_url = https://{{ s3-storage-host }}/
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
endpoint_url = https://{{ s3-storage-host }}/
```yfm
endpoint_url = https://{{ s3-storage-host }}/

В терминале выполните команду, указав имя бакета, ключ объекта и время жизни ссылки в секундах:

```bash
aws s3 presign s3://<имя_бакета>/<ключ_объекта> --expires-in <время_жизни>
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
aws s3 presign s3://<имя_бакета>/<ключ_объекта> --expires-in <время_жизни>

aws s3 presign s3://<имя_бакета>/<ключ_объекта> --expires-in <время_жизни>


{% list tabs group=instructions %}

- Консоль управления {#console}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Консоль управления {#console}
```yfm
- Консоль управления { #console }


{% list tabs group=instructions %}

- AWS CLI {#aws-cli}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- AWS CLI {#aws-cli}
```yfm
- AWS CLI { #aws-cli }

1. Задайте описание ключа и нажмите кнопку **{{ ui-key.yacloud.iam.folder.service-account.overview.popup-key_button_create }}**.
1. Сохраните идентификатор и секретный ключ.

{% note alert %}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% note alert %}
```yfm
{% note alert %}

Текст не содержит грамматических, орфографических и пунктуационных ошибок.


* `AWS Access Key ID` — идентификатор статического ключа, полученный ранее.
* `AWS Secret Access Key` — секретный ключ, полученный ранее.
* `Default region name` — регион `{{ region-id }}`.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `Default region name` — регион `{{ region-id }}`.
* Default region name — регион {{ region-id }}.


В терминале выполните команду, указав имя бакета, ключ объекта и время жизни ссылки в секундах:

```bash
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```bash
```yfm
```bash


```text
[default]
region = kz1
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
region = kz1
region = kz1

aws s3 presign s3://<имя_бакета>/<ключ_объекта> --expires-in <время_жизни>
```

Полученной ссылкой вы можете поделиться или использовать ее в своем сервисе для доступа к файлу.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Полученной ссылкой вы можете поделиться или использовать ее в своем сервисе для доступа к файлу.
Полученной ссылкой вы можете поделиться или использовать её в своём сервисе для доступа к файлу.


{% endcut %}

{% endlist %}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% endlist %}
```yfm
{% endlist %}

{% if region == "kz" %}

```text
[default]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[default]
```yfm
[default]```


{% include [access-bucket-sa](../../_includes/storage/access-bucket-sa.md) %}

1. Создайте статический ключ доступа {#create-keys}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Создайте статический ключ доступа {#create-keys}
Создайте статический ключ доступа { #create-keys }

aws s3 mb s3://<имя_бакета>
```

Подробности см. в документе [{#T}](../operations/buckets/create.md).
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Подробности см. в документе [{#T}](../operations/buckets/create.md).
Подробности см. в документе { #T } (../operations/buckets/create.md).


* `~/.aws/config`:

{% if region == "ru" %}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% if region == "ru" %}
```yfm
{% if region == "ru" %}

* `~/.aws/credentials`:

```text
[default]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[default]
```yfm
[default]```


```text
[default]
region = {{ region-id }}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
region = {{ region-id }}
```yfm
region = { { region-id } }


{% endlist %}

## Загрузите объект в бакет {#upload-files}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Загрузите объект в бакет {#upload-files}
## Загрузите объект в бакет { #upload-files }

aws s3 cp <путь_к_локальному_файлу>/ s3://<имя_бакета>/<ключ_объекта>
```

Подробности см. в документе [{#T}](../operations/objects/upload.md).
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Подробности см. в документе [{#T}](../operations/objects/upload.md).
Подробности см. в документе { #T } (../operations/objects/upload.md).


1. Назначьте сервисному аккаунту нужную [роль](../security/index.md#roles-list), например [storage.editor](../security/index.md#storage-editor) на каталог:

1. В [консоли управления]({{ link-console-main }}) выберите нужное облако или каталог.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. В [консоли управления]({{ link-console-main }}) выберите нужное облако или каталог.
1. В консоли управления ({{ link-console-main }}) выберите нужное облако или каталог.


Вы так же можете использовать существующий сервисный аккаунт.

Подробнее см. в документе [{#T}](../../iam/operations/sa/create.md).
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Подробнее см. в документе [{#T}](../../iam/operations/sa/create.md).
Подробнее см. в документе { #T } (../../iam/operations/sa/create.md).


[AWS CLI](../tools/aws-cli.md) являеться одним из самых популярных инструментов для работы с {{ objstorage-name }}. В этом разделе вы научитесь работать с сервисом с помощью этого инструмента. Инструкцию о работе в консоли управления см. в документе [{#T}](../quickstart.md).

Чтобы начать работу с AWS CLI:
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Чтобы начать работу с AWS CLI:
Чтобы начать работу с AWS CLI:
```yfm


{% endlist %}

## Установите и настройте AWS CLI {#cli-setup}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Установите и настройте AWS CLI {#cli-setup}
## Установите и настройте AWS CLI {#cli-setup}


{% list tabs group=instructions %}

- AWS CLI {#aws-cli}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- AWS CLI {#aws-cli}
```yfm
- AWS CLI { #aws-cli }

```text
[default]
region = {{ region-id }}
endpoint_url = https://{{ s3-storage-host }}/
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
endpoint_url = https://{{ s3-storage-host }}/
```yfm
endpoint_url = https://{{ s3-storage-host }}/


* `~/.aws/credentials`:

```text
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```text
```yfm
```text


- Linux {#linux}

1. В терминале выполните команду:
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. В терминале выполните команду:
```yfm
1. В терминале выполните команду:


1. В терминалле введите команду для настройки AWS CLI:

```bash
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```bash

yfm
bash


1. В терминале выполните команду:

```bash
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```bash

yfm
bash


1. В [консоли управления]({{ link-console-main }}) перейдите в каталог, которому принадлежит сервисный аккаунт.
1. В списке сервисов выберите **{{ ui-key.yacloud.iam.folder.dashboard.label_iam }}**.
1. На панели слева выберите ![FaceRobot](../../_assets/console-icons/face-robot.svg) **{{ ui-key.yacloud.iam.label_service-accounts }}**.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. На панели слева выберите ![FaceRobot](../../_assets/console-icons/face-robot.svg) **{{ ui-key.yacloud.iam.label_service-accounts }}**.
1. На панели слева выберите ![FaceRobot](../../_assets/console-icons/face-robot.svg) **{{ ui-key.yacloud.iam.label_service-accounts }}**.


1. Установите AWS CLI:

{% list tabs group=operating_system %}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% list tabs group=operating_system %}
``` yfm
{% list tabs group=operating_system %}

[default]
aws_access_key_id = <идентификатор_статического_ключа>
aws_secret_access_key = <секретный_ключ>
```
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```
```yfm
```


Подробности см. в документе [{#T}](../operations/objects/link-for-download.md).

{% endlist %}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% endlist %}
```yfm
{% endlist %}

endpoint_url = https://{{ s3-storage-host }}/
```

{% endif %}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% endif %}
{% endif %}

- Консоль управления {#console}

1. Перейдите в [консоль управления]({{ link-console-main }}) затем войдите в {{ yandex-cloud }} или зарегистрируйтесь, если вы еще не зарегистрированы.
1. На странице [**{{ ui-key.yacloud_billing.billing.label_service }}**]({{ link-console-billing }}) убедитесь, что у вас подключен {% if audience != "internal" %}[платежный аккаунт](../../billing/concepts/billing-account.md){% else %}платежный аккаунт{% endif %} и он находится в статусе `ACTIVE` или `TRIAL_ACTIVE`. Если платежного аккаунта нет, {% if audience != "internal" %}[создайте его](../../billing/quickstart/index.md#create_billing_account){% else %}создайте его{% endif %}.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. На странице [**{{ ui-key.yacloud_billing.billing.label_service }}**]({{ link-console-billing }}) убедитесь, что у вас подключен {% if audience != "internal" %}[платежный аккаунт](../../billing/concepts/billing-account.md){% else %}платежный аккаунт{% endif %} и он находится в статусе `ACTIVE` или `TRIAL_ACTIVE`. Если платежного аккаунта нет, {% if audience != "internal" %}[создайте его](../../billing/quickstart/index.md#create_billing_account){% else %}создайте его{% endif %}.
1. На странице [**{{ ui-key.yacloud_billing.billing.label_service }}**]({{ link-console-billing }}) убедитесь, что у вас подключён {% if audience != "internal" %}[платёжный аккаунт](../../billing/concepts/billing-account.md){% else %}платёжный аккаунт{% endif %} и он находится в статусе `ACTIVE` или `TRIAL_ACTIVE`. Если платёжного аккаунта нет, {% if audience != "internal" %}[создайте его](../../billing/quickstart/index.md#create_billing_account){% else %}создайте его{% endif %}.


{% list tabs group=instructions %}

- AWS CLI {#aws-cli}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- AWS CLI {#aws-cli}
```yfm
- AWS CLI { #aws-cli }

1. В открывшемся списке выберите нужный нужный сервисный аккаунт.
1. Нажмите кнопку **{{ ui-key.yacloud.iam.folder.service-account.overview.button_create-key-popup }}** на верхней панели.
1. Выберите **{{ ui-key.yacloud.iam.folder.service-account.overview.button_create_service-account-key }}**.
1. Задайте описание ключа и нажмите кнопку **{{ ui-key.yacloud.iam.folder.service-account.overview.popup-key_button_create }}**.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Задайте описание ключа и нажмите кнопку **{{ ui-key.yacloud.iam.folder.service-account.overview.popup-key_button_create }}**.
1. Задайте описание ключа и нажмите кнопку **{{ ui-key.yacloud.iam.folder.service-account.overview.popup-key_button_create }}**.

В терминале выполните команду, указав имя [бакета](../concepts/bucket.md):

```bash
aws s3 mb s3://<имя_бакета>
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
aws s3 mb s3://<имя_бакета>

aws s3 mb s3://<имя_бакета>

1. Введите значения для параметров:

* `AWS Access Key ID` — идентификатор статического ключа, полученный ранее.
* `AWS Secret Access Key` — секретный ключ, полученный ранее.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `AWS Secret Access Key` — секретный ключ, полученный ранее.
* AWS Secret Access Key — секретный ключ, полученный ранее.

1. В терминале выполните команду:

```bash
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" --output "awscliv2.zip"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" --output "awscliv2.zip"

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" --output "awscliv2.zip"


```bash
aws configure set endpoint_url https://{{ s3-storage-host }}/
```
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```
```yfm
```

@@ -0,0 +1,254 @@
---
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
---
```yfm
---


{% endif %}

{% if region == "kz" %}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% if region == "kz" %}
```yfm
{% if region == "kz" %}

В этом тексте нет грамматических, орфографических и пунктуационных ошибок.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant